<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .fade-enter-active,
        .fade-leave-active {
            transition: opacity 2500ms;
        }
        
        .fade-enter,
        .fade-leave-to {
            opacity: 0;
        }
    </style>
    <link href="https://cdn.bootcss.com/animate.css/3.7.2/animate.min.css" rel="stylesheet">
</head>

<body>
    <div id="app">
        <button @click='show =!show'> 
            过渡
        </button>
        <transition name='fade'>
            <p v-if='show'>猴赛雷！！！</p>
        </transition>
        <button @click='othershow = !othershow'> 
            动画
        </button>
        <transition enter-active-class='animated zoomInDown' leave-active-class='animated zoomOutDown'>
            <p v-if='othershow'>阿尼哈塞哟~</p>
        </transition>
    </div>
    <script src="../libs/vue/vue.js"></script>
    <script>
        new Vue({
            el: '#app',
            data: {
                show: true,
                othershow: true
            }
        })
    </script>
</body>

</html>